package com.yoga.common.appexception;

/**
 * Created by chenjin on 2020/1/6.
 */
public enum AppErrorCodeEnum {

    //------------------------------------------------------------------------------
    SUCCESS(20000, "成功"),
    UN_LOGN(10001, "亲，请先登录"),
    UN_REGISTER(10002, "该账号未注册"),

    //参数类错误
    PARAM_ERROR(20001, "参数错误"),
    PARAMETER_NULL(20002, "参数为空"),
    BIZ_CODE_IS_NULL(20003, "bizCode 不能为空"),
    CUSTOM_ERROR(20004, "自定义错误"),
    ID_IS_NULL(20005, "主键ID为空"),
    TOCKEN_IS_NULL(20006, "userToken不能为空"),
    USER_ID_ERROR(20007, "用户不存在"),
    PHONE_IS_NULL(20008, "手机号为空"),
    AUTH_CAPTCHA_FREQUENCY(20009, "验证码10分钟有效，不能发送"),
    AUTH_CAPTCHA_OVERDUE(20010, "验证码已失效"),
    AUTH_CAPTCHA_ERROR(20011, "验证码错误，请输入正确的验证码"),



    //系统类
    SYSTEM_ERROR(40001, "系统错误"),
    SIGN_ISPARAM(40002, "签名参数错误"),
    SIGN_ERROR(40003, "签名错误"),
    SIGN_ISNULL(40004, "签名参数为空"),
    NO_PERMISSION(40005, "无操作权限"),
    INSERT_DATA_NULL(40006, "保存数据失败"),
    UPDATE_DATA_NULL(40007, "修改失败，请联系管理员处理"),
    QUERY_DATA_NULL(40008, "未查询到数据"),
    ACCOUNT_NOT_EXIST(40009, "账号不存在，请想注册哦"),


    //业务提示类
    GEN_QR_CODE_ERROR(50010, "生成二维码错误"),
    CODE_NULL(50011, "请输入验证码"),
    PASSWD_NULL(50012, "请输入密码"),
    NICK_NULL(50013, "请输入昵称"),
    ACCOUNT_IS_EXIST(50014, "账号已存在"),
    ACCOUNT_NULL(50014, "请输入账号"),
    PASSWD_ERROR(50015, "密码错误"),
    YOGA_USER_ID_NULL(50016, "用户id为空"),
    ADMIN_USER_ID_NULL(50017, "管理员id为空"),
    ACCOUNT_OR_PASSWD_ERROR(50018, "账号或密码错误"),
    CLASS_DATE_NULL(50019, "请填写上课日期"),
    CLASS_DATE_BEFORE_DAY(50019, "您不能回到过去上课，请检查上课日期"),
    CLASS_DATE_AFTER_DAY(50019, "上课日期在今天之后"),
    CLASS_TYPE_NULL(50020, "课程类型没有设置"),
    NOT_CHOICE(50021, "未选择课程"),
    ABOUT_NUMBER_NULL(40022, "约课人数不能为空或小于0"),
    TIME_NULL(50023, "上课时间段未设置"),
    TEACHER_NULL(50024, "未选择上课老师"),
    NOT_SHOP_CHORES(50025, "未选择店铺"),
    COURSE_NAME_NULL(50026, "未填写课程名称"),
    COURSE_LEVEL_NULL(50027, "未设置课程级别"),
    COURSE_NAME_EXIST(50028, "已有该课程了哦"),
    NOT_PLAIN_VIP(50029, "您还不是团课会员"),
    NOT_PRIVATE_VIP(50029, "您还不是私教会员"),
    NOW_ABOUT_AFTER_CLASS(50030, "不能预约今天之前的课程"),
    TEACHER_NOT_EXIST(50031, "系统未找到该上课老师"),
    PLAIN_VIP_NULL(50032, "会员信息不能为空"),
    START_DATE_BEFORE_END_DATE(50033, "开始时间大于结束时间"),
    NOT_ABOUT_NULL(50034, "您当前的会员卡状态不能约课"),
    NOT_CHOICE_SHOP(50035, "请选择场馆"),
    ABOUT_EXIST(50036, "不能重复预约该课程"),
    RENEW_TYPE_NULL(50037, "续卡类型不可为空"),
    RENEW_TYPE_ERROR(50038, "续卡类型与卡类型不一致"),
    MONTH_NUM_NULL(50039, "续卡月数未填写"),
    NOT_NUM_VIP(50040, "该卡不是次卡会员卡"),
    CLASS_NUM_0(50041, "该卡次数已为0"),
    PHONE_NOT_REGISTER(50042, "该手机号码未注册账号"),
    PASSWD_IS_OLD_PASSWD(50043, "密码与原密码相同"),
    UPDATE_PASSWD_ERROR(50044, "密码修改失败，请稍后尝试"),
    QUERY_PRIVATE_NULL(50045, "私教卡获取失败"),
    QUERY_PLAIN_NULL(50046, "团课会员卡获取失败"),
    YOGA_USER_NULL(50047, "无此会员信息"),

    MSG_TITLE_NULL(50048, "请输入消息标题"),
    MSG_CONTENT_NULL(50049, "消息内容不能为空"),
    OLD_PASSWD_ERROR(50050, "原密码错误"),
    PHOTO_NULL(50051, "请上传照片"),
    TITLE_NULL(50052, "标题还没有填写"),
    TYPE_NULL(50053, "所属类型错误"),
    PHOTO_TYPE_2(50054, "轮播图青岛广告中心修改"),

    ;

    private int code;
    private String message;

    AppErrorCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
